package org.softmed.rest.editor.commons;

import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;

public class SwingUtil {

	public final static Font editorTitleFont = new Font("Arial", Font.BOLD, 12);

	public static void setSize(Component comp, int width, int height) {
		comp.setPreferredSize(new Dimension(width, height));
		comp.setMinimumSize(new Dimension(width, height));
		comp.setMaximumSize(new Dimension(width, height));
	}

	public static void setMinSize(Component comp, int width, int height) {
		// comp.setPreferredSize(new Dimension(width, height));
		comp.setMinimumSize(new Dimension(width, height));
		comp.setPreferredSize(null);
		comp.setMaximumSize(null);
		// comp.setMaximumSize(new Dimension(width, height));
	}

}
